<nz-tree
  [nzData]="nodes"
  nzAsyncData
  nzShowIcon
  (nzClick)="nzEvent($event)"
  (nzExpandChange)="nzEvent($event)"
  [nzExpandedIcon]="multiExpandedIconTpl"
>
  <ng-template #multiExpandedIconTpl let-node let-origin="origin">
    <span
      *ngIf="!origin.isLeaf"
      nz-icon
      [nzType]="node.isExpanded ? 'folder-open' : 'folder'"
      class="ant-tree-switcher-line-icon"
    ></span>
    <span *ngIf="origin.isLeaf" nz-icon nzType="file" class="ant-tree-switcher-line-icon"></span>
  </ng-template>
</nz-tree>
